<template>
    <el-tooltip effect="dark" :content="title" placement="top">
    <!-- 将父组件传递过来所有属性(props声明除外), 传递给我的子组件el-button -->
    <el-button v-bind="$attrs" v-on="$listeners"></el-button>
  </el-tooltip>
</template>

<script>
export default {
  name: 'HintButton',
  props: ['title'],
  mounted () {
    console.log(this.$attrs, this.$listeners)
  }
}
</script>

<style scoped>

</style>
